/********************************************************/
/*	Copyright (C) 2016 Gong Li Bin		 	*/
/*	Project:	GoLib-1.0.0			*/
/*	Author:		gong_libin			*/
/*	Date:		2016_01_01			*/
/*	File:		GoTimeTest.go			*/
/********************************************************/

package main

import (
	. "GoGlb"
	C "GoCls"
)

func main() {
	d := new(C.GoDate)
	d.GoDateNow()
	GoPrtln("GoDateToday:\t", d.GoDateValue())

	c := new(C.GoClock)
	c.GoClockNow()
	GoPrtln("GoClockNow:\t", c.GoClockValue())

	s := new(C.GoStamp)
	s.GoStampNow()
	GoPrtln("GoStampNow:\t", s.GoStampValue())

	GoPrtln("Since 1970:\t", C.GoTimeUnix())

	t := new(C.GoTimer)
	t.GoTimerOn()
	C.GoTimeSleep(1, 0)
	t.GoTimerOff()
	GoPrint("GoTimerCost:\t")
	t.GoTimerCost()
	GoPrint("GoTimerSince:\t")
	t.GoTimerSince()
}
